var app = new Vue({
  el: ".mychoice",
  data() {
    return {
      list:[],
      isactive:2,
      searchkey:'',
      choice: [
        {
          data1:
            "火币全球专业站，是火币集团旗下服务于全球专业交易用户的创新数字资产交易平台，致力于发现优质的创新数字资产投资机会，目前提供四十多种数字资产品类的交易及投资服务，总部位于新加坡，由火币全球专业站团队负责运营。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "火币pro",
          data6: "火币pro",
          data7: "火币pro",
          data8: "APP下载",
          data9: "火币",
          data10: "进入",
          data11: "https://www.huobi.br.com/zh-cn/"
        },
        {
          data1: "gate是比特儿海外版",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "比特儿",
          data6: "比特儿",
          data7: "比特儿",
          data8: "APP下载",
          data9: "比特儿",
          data10: "进入",
          data11: "https://www.gateio.io/"
        },
        {
          data1:
            "币赢网是中国国企在香港开设的全球数字资产交易平台，主要面向全球用户提供以太币、HSR等数字资产的交易服务。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "币赢",
          data6: "币赢",
          data7: "币赢",
          data8: "APP下载",
          data9: "币赢",
          data10: "进入",
          data11: "https://www.coinw.me/"
        },
        {
          data1:
            "ZB.com是一个全球化的数字货币交易所，目前已获得泰国和迪拜的交易所牌照，并且已在瑞士、加拿大、美国、曼谷、迪拜等地设立运营中心。ZB.com专注为全球客户提供安全、便捷和合规的区块链资产交易服务。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "ZB",
          data6: "ZB",
          data7: "ZB",
          data8: "APP下载",
          data9: "ZB",
          data10: "进入",
          data11: "https://www.bitkk.com/"
        },
        {
          data1:
            "Binance 是全球领先的区块链资产交易平台，为全球区块链爱好者提供多币种、多语言的币币兑换服务，目前包含 Binance 区块链资产交易平台、Binance Info，Binance Labs，Binance Launchpad 等业务",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "币安",
          data6: "币安",
          data7: "币安",
          data8: "APP下载",
          data9: "币安",
          data10: "进入",
          data11: "https://www.binance.top/"
        },
        {
          data1:
            "OKEX（www.okex.com）是全球著名的数字资产交易平台之一，主要面向全球用户提供比特币、莱特币、以太币等数字资产的现货和衍生品交易服务，隶属于OKEX Technology Company Limited",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "OKEX",
          data6: "OKEX",
          data7: "OKEX",
          data8: "APP下载",
          data9: "OKEX",
          data10: "进入",
          data11: "https://www.okb.com/"
        },
        {
          data1:
            "LBank成立于2016年10月，是一家面向全球用户的创新型数字资产交易平台。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "LBANK",
          data6: "LBANK",
          data7: "LBANK",
          data8: "APP下载",
          data9: "LBANK",
          data10: "进入",
          data11: "https://www.lbank.io/"
        },
        {
          data1:
            "Bibox顶级优质数字资产交易平台，以金融衍生品服务知名于业内；全球首个人工智能数字资产交易平台，创新性地实现交易安全性、平台稳定性、操作便利性；总部设在爱沙尼亚。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "bibox",
          data6: "bibox",
          data7: "Bibox交易所",
          data8: "APP下载",
          data9: "bibox",
          data10: "进入",
          data11: "https://www.bibox365.com/"
        },
        {
          data1:
            "BitMEX建立于塞舌尔共和国，是最先进的比特币衍生品交易所,对于比特币类产品提供高达100倍的杠杆，同时也提供针对其它数字货币产品的高杠杆。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "BitMEX ",
          data6: "huo",
          data7: "BitMEX",
          data8: "APP下载",
          data9: "BitMEX",
          data10: "进入",
          data11: "https://www.bitmex.com/"
        },
        {
          data1:
            "Bitfinex是全世界最大、最高级的比特币交易平台之一，支持以太坊、比特币、莱特币、以太经典等虚拟币的交易，每天的成交量达30多亿人民币。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "Bitfinex",
          data6: "huo",
          data7: "Bitfinex",
          data8: "APP下载",
          data9: "Bitfinex",
          data10: "进入",
          data11: "https://www.bitfinex.com"
        },
        {
          data1:
            "总部位于旧金山的Kraken成立于2011年，是欧元交易量最大的比特币交易所，也可用加拿大元、美元、英镑和日元交易。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "K网 ",
          data6: "huo",
          data7: "K网",
          data8: "APP下载",
          data9: "K网",
          data10: "进入",
          data11: "https://www.kraken.com"
        },
        {
          data1:
            "火币全球专业站推出了全新子品牌火币自主数字资产交易所（Huobi Autonomous Digital Asset eXchange，简称HADAX），服务于专业数字资产投资者及早期的创新型数字资产。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "HADAX",
          data6: "huo",
          data7: "HADAX",
          data8: "APP下载",
          data9: "火币",
          data10: "进入",
          data11: "http://www.hadax.com/zh-cn/"
        },
        {
          data1:
            "FCoin致力于创建一个自治的、高效的、透明的数字资产交易平台，让交易员和投资者可以放心地进行任何规模的交易，而无需担忧平台的公正性和透明性、数据安全隐私保护的可靠性、或其订单管理系统的完整性和稳健性。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "FCoin",
          data6: "huo",
          data7: "FCoin",
          data8: "APP下载",
          data9: "FCoin",
          data10: "进入",
          data11: "https://www.fcoin.com"
        },
        {
          data1:
            "CoinX菲律宾数字资产交易所是在菲律宾运营的加密货币交易所，主要服务对象为菲律宾区块链投资者。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "COINX",
          data6: "huo",
          data7: "COINX",
          data8: "APP下载",
          data9: "COINX",
          data10: "进入",
          data11: "https://www.coinx.im"
        },
        {
          data1:
            "Upbit可视为是韩国B网，是韩国金融科技公司Dunamu与美国交易所Bittrex合作推出的数字货币交易所，目前支持200多个交易对，超过110种代币的交易",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "Upbit",
          data6: "huo",
          data7: "Upbit",
          data8: "APP下载",
          data9: "Upbit",
          data10: "进入",
          data11: "https://www.upbit.com/home"
        },
        {
          data1:
            "EXX是澳大利亚团队打造的面向全球提供比特币、以太坊、莱特币、以太坊经典等多种数字货币交易服务，是安全可信赖的数字货币交易网。",
          data2: "现货",
          data3: "期货",
          data4: "法币",
          data5: "EXX",
          data6: "huo",
          data7: "EXX",
          data8: "APP下载",
          data9: "EXX",
          data10: "进入",
          data11: "https://www.exx.com/"
        }
      ]
    };
  },
  created() {
    this.setRem(28.43);
    this.fontSize(62);
    axios.post('/userselectSelection').then( res => {
      if(res.data.data&&res.data.data.articles.list&&res.data.data.articles.list.length){
        this.list=res.data.data.articles.list
      }
    })
  },
  methods: {
    listclick(index){
      location.href=this.list[index].url
    },
    setRem(itemNum) {
      //设置字体rem
      let size = itemNum || 38;
      window.onresize = remSize;
      remSize();
      function remSize() {
        let html = document.getElementsByTagName("html")[0],
          w = html.clientWidth;
        w = w > 768 ? 768 : w;
        html.style.fontSize = w / size + "px";
      }
    },
    fontSize(itemnum) {
      let html = document.getElementsByTagName("html")[0];
      let a = html.style.fontSize;
    },
    search(){
        if(this.searchkey==''){
            return
        }
        window.open(`https://www.baidu.com/s?wd=${this.searchkey}`,'')            
    },
    addoption(){
      // if(sessionStorage.getItem('ID')){
      //   location.href="/m/maddoptional"
      // }else{
      //   location.href="/m/mloading"
      // }
      if(this.list&&this.listclick.length){
        location.href="/m/maddoptional"
      }else if(sessionStorage.getItem('ID')){
        location.href="/m/maddoptional"
      }else{
        location.href="/m/mloading"
      }
    }
  }
});
